<?php
namespace app\servercertificate\model;

use \app\manage\model\BaseModel;

class TransferLog extends BaseModel
{
	protected $name = 'transfer_log';
    protected $connection = 'db_config_certificate';
    protected $dateFormat = 'Y-m-d H:i:s';
    protected $statusText = [ 0=>'待处理', 1=>'接受转让', 2=>'拒绝转让', 3=>'取消转让' ];
    protected $append = ['status_text'];

    public function setUserInfoAttr($value){	
		return json_encode($value); 	
	} 

	public function getUserInfoAttr($value){ 	
		return json_decode($value, true);
	} 

	public function setToUserInfoAttr($value){ 
		return json_encode($value); 
	} 	

	public function getToUserInfoAttr($value) { 
		return json_decode($value, true);
	}

	public function setCertificateInfoAttr($value){
		return json_encode($value);
	}

	public function getCertificateInfoAttr($value){
		return json_decode($value, true);
	}

}